	// create the module and name it AWSApp
	var AWSApp = angular.module('AWSApp', ['ngRoute']);

	// configure our routes
	AWSApp.config(function($routeProvider) {
		$routeProvider

			// route for the home page
			.when('/', {
				templateUrl : 'pages/home.html',
				controller  : 'mainController'
			})

			// route for the airpressure page
			.when('/airpressure', {
				templateUrl : 'pages/airpressure.html',
				controller  : 'airpressureController'
			})

			// route for the humidity page
			.when('/humidity', {
				templateUrl : 'pages/humidity.html',
				controller  : 'humidityController'
			})
			
			// route for the rainrate page
			.when('/rainrate', {
				templateUrl : 'pages/rainrate.html',
				controller  : 'rainrateController'
			})
			
			// route for the temperature page
			.when('/temperature', {
				templateUrl : 'pages/temperature.html',
				controller  : 'temperatureController'
			})
			
			// route for the winddirection page
			.when('/winddirection', {
				templateUrl : 'pages/winddirection.html',
				controller  : 'winddirectionController'
			})
			
			// route for the windspeed page
			.when('/windspeed', {
				templateUrl : 'pages/windspeed.html',
				controller  : 'windspeedController'
			});
	});

	// create the controller and inject Angular's $scope
	AWSApp.controller('mainController', function($scope) {
		// create a message to display in our view
		$scope.message = 'Everyone come and see how good I look!';
	});

	AWSApp.controller('airpressureController', function($scope) {
		$scope.message = 'airpressure';
	});
	
	AWSApp.controller('humidityController', function($scope) {
		$scope.message = 'Look! I am an humidity page.';
	});
	
	AWSApp.controller('rainrateController', function($scope) {
		$scope.message = 'Look! I am an rain rate page.';
	});
	
	AWSApp.controller('temperatureController', function($scope) {
		$scope.message = 'Look! I am an temperature page.';
	});
	
	AWSApp.controller('windspeedController', function($scope) {
		$scope.message = 'Look! I am an windspeed page.';
	});
	
	AWSApp.controller('winddirectionController', function($scope) {
		$scope.message = 'Look! I am an winddirection page.';
	});


	